<extend name="Public/base"/><block name="body"><div class="Tool_Bar" id="Notices_Bar">
<dl>
	<dt>公告管理</dt>
    {$Main_Nav}
</dl>
</div>
<div style="display: none">
<form id="Notices_Search_From" >
<fieldset class="Form_1 Form_2">
<div class="formitm">
	<label class="lab" for="for_content">内容 ：</label>
	<div class="ipt"><input name="s_content" id="for_content" class="easyui-textbox" style="height:30px;"></div>
</div><div class="formitm">
	<label class="lab" for="for_pic">图片 ：</label>
	<div class="ipt"></div>
</div><div class="formitm">
	<label class="lab" for="for_date">日期 ：</label>
	<div class="ipt"><input name="s_date_min" type="text" class="easyui-datetimebox" style="height:30px;"> - <input name="s_date_max" type="text" class="easyui-datetimebox" style="height:30px;"></div>
</div></fieldset>
</form>
</div>
<table id="Notices_Data_List"></table>
<script type="text/javascript">
$(function() {
	$("#Notices_Data_List").datagrid({
		url : "{:U('Notices/index')}",
		fit : true,
		striped : true,
		border : false,
		pagination : true,
		pageSize : 20,
		pageList : [ 10, 20, 50 ],
		pageNumber : 1,
		sortName : 'id',
		sortOrder : 'desc',
		toolbar : '#Notices_Bar',
		singleSelect : true,
		frozenColumns:[[
			{field : 'id',title : 'ID',width : 40,sortable:true}
,
			{field : "content",title : "内容",width :100}
				
		]],
		columns : [[

			{field : "pic",title : "图片",width :100},
			
			{field : "date",title : "日期",width :100,formatter: function (value, row, index) {
				return u_to_ymdhis(value)
			}},
				

			{field : "operate",title : "操作",width : 200,formatter: function (value, row, index) {
				operate_menu='';
				
				<if condition="Is_Auth('Admin/Notices/edit')">
				operate_menu = operate_menu+"<a href='<?php echo U('edit'); ?>&id="+row.id+"' >编辑</a>";
				</if>

				<if condition="Is_Auth('Admin/Notices/del')">
				operate_menu = operate_menu+" | <a href='#' onclick=\"Data_Ajax('<?php echo U('del'); ?>&id="+row.id+"','Notices_Data_List');\">删除</a>";
				</if>

				return operate_menu;
			}}
		]]
	});
})
<!-- 扩展数据 starp-->
<!-- 扩展数据 end-->
</script></block>